package com.candy.candyother.business.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author suYanLong
 * @version 1.0
 * @date 2023/5/4 14:56
 * @Description 异构服务
 */
@RequestMapping("test")
@RestController
public class SidecarController {

    /**
     * 健康检查接口
     *
     * @return
     */
    @RequestMapping("health")
    public Map<String, String> health() {
        HashMap<String, String> map = new HashMap<>();
        map.put("status", "UP");
        return map;
    }

    /**
     * 业务接口
     *
     * @return
     */
    @GetMapping("getValue")
    public String getValue() {
        return "getValue";
    }

}
